﻿using System;
using System.Collections.Generic;
using System.Text;
using libCommonClass;
using libReadWrite;

namespace TTServer.Messages
{
    public class DoneMessage: TTMessage
    {
        public DoneMessage()
        {

        }

        public override void ReadMessage(BigEndianReader sr)
        {
            throw new NotImplementedException();
        }

        public override void WriteMessage(BigEndianWriter sw)
        {
            sw.Write((byte)MessageKind.DONE);
            sw.Write(Global.NO_LENGTH_CODE);
        }

        public override TTMessage Clone()
        {
            return new DoneMessage();
        }

        public override int GetMessageID()
        {
            return MessageKind.DONE;
        }

        public override string GetMessageName()
        {
            return "DoneMessage";
        }
    }
}
